<template>
         <el-carousel :interval="2000" arrow="always" style="height:180px;" indicator-position="none" >
            <el-carousel-item v-for="(item,i) in list" :key="i" style="height:180px;">
            <img :src="URL+'uploads/images/'+item.img" style="height:180px;">
            </el-carousel-item>
         </el-carousel>
</template>

<script>

export default {
       props:{
           list:{
               type:Array,
               required : true,
               URL:"",
           }
       },
       mounted(){
             var urll = this.baseURL;
             this.URL = urll;
            //  console.log(this.URL)
       }
}

</script>

<style lang="less" scoped>
      .tp{
          width:100%;
          height:6.98rem;
      }
</style>
<style>
       .el-carousel__container{
           height:180px;
       }
</style>